var tt = getApp();

Page({
  data: {
    showFlag: !1,
    name:'申请加入'
  },
  previewImage: function(a) {
    console.log(a), this.data.showFlag = !0;
    var t = [a.target.dataset.url];
    wx.previewImage({
      urls: t
    });
  },
  goTointro: function(a) {
    console.log(a), wx.setStorageSync("doctorId", a.target.dataset.id), wx.navigateTo({
      url: "/hyb_yl/backstageTeam/pages/doctorIntro/doctorIntro?type=1"
    });
  },
  navCode: function(a) {
    wx.navigateTo({
      url: "/hyb_yl/backstageTeam/pages/teamDetails4/teamDetails4?teamId=" + this.data.teamId
    });
  },
  serve: function(a) {
    console.log(0xa1b01d4b1c7), wx.setStorageSync("teamId", this.data.teamId), wx.navigateTo({
      url: "/hyb_yl/backstageTeam/pages/notice1/notice1?managerRole=3"
    });
  },
  list: function(a) {
    wx.showToast({
      title: "您无权限查看",
      icon: "none",
      duration: 1e3
    });
  },
  onLoad: function (t) {
    this.setData({
      teampic: t.teampic,
      t_id: t.t_id,
      zid: t.zid,
      teamtext: t.teamtext,
      teamname: t.teamname,
      z_thumbs: t.z_thumbs,
      z_name: t.z_name,
    })
  },
  onShow: function() {
    // var t = this;
    // this.data.showFlag || (wx.showLoading({
    //     title: "加载中...",
    //     mask: !0
    // }), wx.request({
    //     url: a.globalData.dic + "doctor/team/detail/" + t.data.token + "/" + t.data.teamId,
    //     success: function(a) {
    //         if (console.log(a), 200 == a.data.code) {
    //             wx.hideLoading();
    //             var e = a.data.data.createTime.split(" ");
    //             a.data.data.createTime = e[0], t.setData({
    //                 detailList: a.data.data,
    //                 img: a.data.data.teamHeaderUrl
    //             }), console.log(t.data.detailList), a.data.data.teamDesc.length > 65 ? t.setData({
    //                 teamDescFlag: !0
    //             }) : t.setData({
    //                 teamDescFlag: !1
    //             });
    //         }
    //         10020115 == a.data.code && (wx.hideLoading(), wx.showToast({
    //             title: a.data.msg,
    //             icon: "none",
    //             duration: 2e3
    //         }));
    //     }
    // })), this.data.showFlag = !1;
    
  },
  tapFlag: function() {
    console.log(111), this.setData({
      teamDescFlag: !this.data.teamDescFlag
    }), this.data.teamDescFlag ? this.setData({
      downFlag: !1
    }) : this.setData({
      downFlag: !0
    });
  },
  join: function(a) {
    var e = this;
    var zid = e.data.zid
    var t_id = e.data.t_id
    tt.util.request({
      'url': 'entry/wxapp/Yaoqing',
      data: {
        zid: zid,
        t_id: t_id,
        op: 'yaoqingjilu'
      },
      success: function (res) {
        console.log(res)

      }
    })
    
  }
});